﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace fqlmoney.Model
{
   public class user_moneytype
    {
        private int _t_state;

        public int t_id { get; set; }
        public int u_id { get; set; }
        public string t_name { get; set; }
        /// <summary>
        /// 1收入2支出
        /// </summary>
        public int t_state {
            get { return _t_state; }
            set
            {
                if (value == 2)
                {
                    _t_state = 2;
                }
                else
                {
                    _t_state = 1;
                }
            }
        }
        /// <summary>
        /// 1删除0未删除
        /// </summary>
        public int t_delete { get; set; }
        
    }
}
